<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>
    <div id="app">
        <input type="text" ref="xxx">


    </div>



    <script src=" vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                list: [],
            },

            beforeCreate() {
                console.log("创建前",);
            },
            created() {
                console.log("创建后",);
            },
            beforeMount() {
                console.log("挂载前", this.$refs.xxx);
            },
            mounted() {
                console.log("挂载前", this.$refs.xxx);
            },


            beforeUpdate() {
                console.log("更新前");
            },
            updated() {
                console.log("更新后");
            },

            beforeDestroy() {
                console.log("销毁前");
            },

            destroyed() {
                console.log("销毁后");
            },












        });
    </script>
</body>

</html>